package exercise;

import util.Util;

public class Search {
    public static void main(String[] args) {
        int[] arr1 = new int[]{34, 54, 3, 2, 65, 7, 34, 5, 76, 34, 67};
        System.out.println(Util.linearSearch(arr1, 5));

        int[] arr2 = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 34, 44, 45};
        System.out.println(Util.binarySearch(arr2, 0, arr2.length - 1, 23));
    }
}
